Updated ergisterChild() usage