fix template not working with 0 parameters specified