Fixed calendar create/update issue.