Fixed potential undefined reference error