fix ptr+offset in global constant