Fixed implicit conversion warning.