fixed broken linear template creation