bug fix in profile