fixed a profile bug