Fixing the error on the activities page.