fixed twig errors with model