Fixed error in compute_xrd.cpp