bug fix. an event was run twice if more than one where using the same regexp