fixed bug preventing events page from loading