Fixed check for duplicate to check for correct date.