Entering flatted notes

New user on iPad. Sometimes entering a note, then applying a flat, shifts the note. For example I enter
and E, try and flat it, and the score shows a D. Any help appreciated
and E, try and flat it, and the score shows a D. Any help appreciated