Quick bugfix. Those global objects keep fucking me over.