fix conversion types