Fix a case that keyboard change from keyboard with auto-completion to a one without that leads to misplacing the avoiding view