fix datagetter that was causing a query parse exception