Fixed bin edge bug in discrete_consistency()