fix a tiny issue when ouput xyz file