Fixed bug in GraphicsHandler