solved encGlobal error