fix conversion error