Cleaned up memory used for the children ids, fixes #1.