Fixed typo when generating error label