bug fix to generate templates without components