Fixed error on copying to /tmp