fix invalid conversion from 'const char*' to 'char*'