Fixing paths for templates