fix for activity templates