fixed creation of dates that caused fatal error