Fixed an issue in graphics