document: wrong index check in GetFragmentAt