Fix error recovery.