fix conversion warnings