fixed compile warning for char* vs char