Bugfixes in calendar module and email reminder