fix conversion warning