Fixed error with overwriting in profile update