fixed io on error
fixed io on error