finally fixed inven issues