IOException fixed