fix for selection events.