fixed conversion bug