fixed IO EXCEPTION