The choice of a or an is not based on the initial written letter. It is based on the initial sound. You have to listen to sounds, not look at letters, to decide.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.