joshing fix for query global reference