fix profile bug.