Fix double occurrence of childCount.