fixed xcv dump function