fixed global variable assignment (also causes problems with some minifiers)