Fixed the undefined reference issue