Fixed bug at receiving a wiring event