Fixes syntax error in inventory