fix ioexception