Digital outputs initial status

Hi all, I uploaded a modified bootloader on my Atmega2560 custom board. I increased the amount of time the bootloader waits for the sketch and I changed the bootloader activity led from

// #define PROGLED_PORT PORTB
// #define PROGLED_DDR DDRB
// #define PROGLED_PIN PINB7

to

#define PROGLED_PORT PORTK
#define PROGLED_DDR DDRK
#define PROGLED_PIN PINK0

I can't figure the reason for wich the PG0_ pin (PIN 41) remains at HIGH state until the sketch is started. Somebody have any ideas?

Thank a lot
Marco

Some updates… It happens with the original bootloader too…
When I power up the Mega2560, PG0 goes high… When the sketch starts, it goes off!