Fix undefined reference error