fix set profile bug