fixed leaf reverse selection bug