New fix for error that append randomly when removing a container.