Small fix for datefields