fix inv not update problem