Fixed the bisection of setUpGlobalEvents.