Repair bug in activity.