fixe inventory bug