Fixed bug in AddDatPar.