fixed bug on currentSelectionCount