corrected EventSelector constructor to remove an induced bug