Fixed some bugs in profile page