Deleting the bugged code. Restarting the pref.js from scratch.