It's correct to use the subjunctive "were" in your sentence. Nowadays it's common for speakers, especially British English speakers, not to use the subjunctive. On the other hand, there are many American speakers (more than the entire population of the UK) who still use the subjunctive even in casual conversation, and the correct use of the subjunctive (both past and present tense) is expected for formal writing in American English.