Fixed implicit conversion bug