fix 'template not found' issue