fix copy on fail compile