fix bad request on profile update