Fix saving calendar event from modal.