Make events selection work