Problem when rendering view to template with model.