Fixes xml render of activities.