fixed typo in error structure