fixed linker issue for plots