Bug fix in profile