fix IOError handling