Fix bug and make deselect thing.