Make sure to keep view generator alive in route gen.