BUG: fix closed='left' erroneous resampling logic regression. close #3020