prevent broken prefs to hide window