const char warning fix