BUGFIX: fixed wrong value comparison for data pruning.