fix leaf selection bug;
added leaf single selection sample