Fix silly implementation error for invalid operation error.

Quick hotfix for Erik-was-tired typo.