fixed prefs not loading from input correctly