fixing hodlr apply_inverse behaviour