Fix child number bug