Fixed problems with postgis