fixed char * compilation error