Fix implicit conversion warning