FIX: stupid bug in spt.criterion.threshold