Cursor jumps to different lines for no reason .....