Fixed keyboard popup when it is not needed.