Fixed minor problem with wall query