Fixed the query for org wide events