fix missing file and extra layers template