Fixed create profile bug.