Bug fix for activity.