bug fix related to creating calendar events