Display error if occurs and fixed typo.