Fixes issues with activities.