Made an optimization regarding uncaught events which caused merging
nodes to have a big delay.