Fixed bug when the keyboard opens