Fix geninventory command