fix to objectcontainer's addChildren method