Fixed DP bug introduced after update that doesnt consider 0 probability edges