fix a subtle bin edge leakage issue