fix npe on twig block goto #237