fix inventory syntax error