Fixed minor bug in create_activity.