Fix chilren nodes' ordering