Fix #37 in_group conditionals broken in main template