Fixed optimal stopping bugs