fixed bug in PrintDat