Fix on querying location stats