Fixed bug in viewActivities