fix get inv