try to fix a bug when calendar name is empty