Fixed error causing multiple calendars to be created.