Make copy to sdcard more reliable