Minor bugfixes + gui.pref edit on fail