bug fix: deselect was not working