fixed typos in error message and status identification