Fixed coding bugs in check rule fitness.