Fix str conversion bug