factor conversion bug fixed