Bug Fix in OreTemplate