typo in error class