Bug fix in querybuilder ajax call