Fix random variable limit guard clause bug.