fixed the linking error