Fixing error conversion bug.