fixed selection issue #45