fixed the draw issue