The simple past often substitutes for the past perfect. The same can work for were instead of had been in if clauses. I find both versions acceptable, though had been is, as you say, "more correct" because you're talking about the past, and I think I would choose had been in this case.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.