Added ranges to calc queries and fixed a bug with loot transformations