Fixed mtl so code always generates

Edited activity.mtl so that when generating the contents of a
sub-activity, it will start from one of the input activityparameternodes