fixed a bug in linker module