fix polygon drawing. now two lines can meet each other ;)