Fixed bugs in hfOccGenerator.C