Fix sending the same selection event after perspective change
Fix selection clears