Fix some global event handlers interfering