fix type of io_dir