Fixed update bug for inserting new components.