Close polygon in case