fix bug on setprofile