Fix: Possible crash when deselecting