Fixed a bug where the monitor would not register some events