Fixed comptue_xrd.cpp - indexing error