Bugfixes in paths for templates and default handler