BUG: Fix Non selected problem in edit inv type