fixed round error causing incorrect drawing