Fix a implicit conversion warning