Fixed bugs linked with query building