Fixed regex in event handling.