fixing case insensitive search for events