fixed getActivityNames problem.