pep8, fixes crash on pair invoice without prior one