Fixed the bug in insert-child that makes the pos > 0 not working.