major bug correction in XDS.INP creation