little fix in getGlobalVector