Fix get inventory

Merged bee26 requested to merge fix_get_inventory into master

Merge request reports