postgis id fixes