Bug fix on binEdges discretization