Fix for hang on minimize keyboard and back button on old devices