fix draw line and polygon