fix bad linking