fix profile bug