fixed bug when ajax result does not contain "query" property