fix polygon delete bugs