fix the childrenCollapsed assignment