Fix typo
Bugfixes to flask and jinja