fix implicit conversion warning