ESP32 does not start program at boot

I solved the problem by adding a capacitor and a resistor like this:


There seems to be a strange behavior between power on and program start but at least the program starts.