Fix for undefined reference