fix null reference problem in characterNetSync script