fixed some bugs in the hierarquical predictor