If you are looking for correctness I would use "were" though I would say both are correct and a lot of textbooks use "was"instead of "were". However, if you are sitting an exam I would use "were".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.