Fixed graphics-system not disposing correctly