try copying the file to avoid bug on OS X