Fixes polygon selection