calendar and permissions fix