Fix errors when creating a new calendar in Linux (BL-652)