Debugged the problems in childrenStates