fix implicit conversion