fixed error in graphics