fixed linking error