search fix, inventory_templates rework