Fixed deselect bug