bugfix at errno exception