fix valueDate mode