correct twig errors
correct session major bug