fixed typo in name of error object