fixed preferences page not working