use !calendar.accountId it covers all those cases