action a todo in inv + fix ValueError in inv_rheader