fix dashboard error when userpref not set