Fix bug in profile.