fix some bugs. done activity detail register restric.