Fixed an issue with inventory callback parameters