Fixed double template definition for deployment