fix problem when there is more than one 'templates' in file path