Fix level paths in templates