fixing bug in profile view