Fixed graphics bug