Correction of bug in discrete.