Fix extension for PlainTemplate