Added fix to remove cursor when keyboard is hidden