inv bug fixed