fixed bug with events on segmentViews