fix strcpy bug