An "An" will always be used when the following word starts with a vowel or a phonetic vowel, as "M" is pronounced "em", the use of the "an" is correct
Cheers mate I thought it sounded wrong. I knew an goes if the word is a vowel but was unsure in this case. The intricate English language