If, after you have uploaded the Arduino-ISP to your UNO R3, you do NOT connect the 10 microfarad capacitor from the RESET pin of the UNO R3 to GND, and try to transfer a Skecht to the Atmega, the ARDUINO-ISP program on the UN deleted again. That is why this capacitor is absolutely necessary. And at the RESET PIN of the Atmega328 you absolutely have to attach a 10kOhm resistor to VCC so that the Atmega can run. In addition, a ceramic capacitor with a value of 22pF to GND is required at each connection of the quartz, pin 7 + pin 8, otherwise the quartz will not oscillate.