fixed error in indexing for pairs in rel_dispersion