Fix inconvertible type error