Fixed single server local and query error