fixed bug in Xs.add
fixed bug in Xs.add