Fixing error logic and grammar.