fixed session template rendering (a bit)