Adapt to current version of globjects