fixed cast from const char* to char*