Fix update profile bug