fixing postgis errors in tasks