Fix linker and line drawing

fix linker and drawing