fix a bug in profile page