fix nulling of datefield