fix space and link errors