Corrected the Activity.completed flag