fixed problem with nested templates