fixed a bug in IOGraph