fixes invalid index for polygon lookup