Fixed an uncatched global variable.