fixed non-cleared inventory on restart bug