fixed inventorycloseevent