onSelect event bug fixed.