Fixed session.twig endif bug