fixed last edge probability infinity