fix graphics problem