Fix updating patient profile bug