fixed inv. issue