fix nil error when approving no invalid values. issue #266