Fixed an implicit conversion warning