Fixed bug when selection enabled.