fix for calendar loading events