fixed calendarId field; send null msg on error