beyond the technical reasons, the change of hairstyle can be explained with many pretexts. talking to Sam, once their relationship is "stabilized", Sophia could invite him to suggest some changes in her appearance, including her hairstyle, to please him more. Women are known to be sensitive to this kind of thing. To do this Sophia would have to continue with the old hairstyle for a while but this would only be a problem for the animations.