Fix typo in error case.