fix inventory templates