Fixed the parse exception handling.