small fix for dates