except type/value error, and fixed typo.