fixed rootdir::operator[](int i)