fix bug from old io files