Complex sentence: Mood varies these patterns so a child's personality isn't necessarily "set" but negative psychological traits tend to be more difficult to change as a child gets older (DeHaan 2009).
Split into simpler sentences: Mood varies these patterns, so a child's personality isn't necessarily "set". Negative psychological traits tend to be more difficult to change as a child gets older (DeHaan 2009).