fix first child adding bug