fix the bug that store names in profile.p

rather than name.p