fixed famous global (window) vars