fixed a datetimefield error