fix undefined reference