fix select/deselect