fix polygon shape