fix linker related bug