Fixed issue in prediction algorithm where repeated values (in different attributes)