Fix a exception failure in redpen command