problem while creating a path from a template