Fix bug in profile