Fix polygon union bug