fix a bug in fix_reloc generation