Fixed bug in profile