fixed the drawing issues