fixed small issue with datetime