fix a bug in reading global syms