inventory serilisation bug fixed