Fix localization check on screen configuration change