Fixed minor spatial data extraction bugs