Fix last date getting.