Fixed addpref breaking