corrected linker bug