fix type and remove children reference