fix nil template compilation