fix polygon draing