fixes Events query where events from deleted projects are loaded [Fixes #82468750]
fixes query where count of Projects does not match the number of displayed projects [Fixes #82468830]