fix copy if there is no file