Fix for bug upgrading inventory module