Bug in upgradelib: varsglobal was not retreived correctly