Fixed bug which caused successprobability to be written out as 0.