Fixing bug with ical generation