fix for duplicate date error