Corrected commit for Calendar issues

Added in the missed code for the calendar issue fix of adding duplicate
records.
calendar fix
fixpkjavlkjasfvlkhsdbnv