Mega2560 + Mega2560 as ISP to burn bootloader

Hi, I want to burn the bootloader on Arduino Mega2560. I'm using another Mega2560 as ISP, on which I uploaded the sketch "ArduinoISP". Then I made the following connections between the two boards:

Mega2560 with the sketch Mega2560 to be programmed 50