Fix bug in GraphicContainer.