fixed wrong imr query construction