fixed merge about clearing the selection