Fixed bug in eventProducer selection