fixed strdup problem