fix polygon-gamma regression

This attempts to fix #1095. Please review for unintended effects.