apply patch to fix bug in calendar module