Fixed bug with location filtering.