Fixed bug in AddDatPar