fixed full inv bug