Arduino Mega 2560 Multiple serial

Hi,
I've got a problem with serials interfaces on arduino mega 2560, i'm trying to use serial, serial1 and serial2 simultaneously.
My code is this one:
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial1.begin(9600);
Serial2.begin(9600);
}

void loop() {
// put your main code here, to run repeatedly:

if(Serial1.available()>0)
{
Serial.print(Serial1.read());
}
if(Serial2.available()>0)
{
Serial.print(Serial2.read());
}
}[/table]

It don't walks, but if i try to use Serial and Serial1 it walks, and when i try to use Serial and Serial2 but the program don't run with both Serials.
I'm using adruino 1.5.2 i tried 1.0.5, i'm on windows Xp sp3.
I hope you understand my trouble and will help me.

How to use this forum

Code tags, please.

In what way does it not work?

Can you explain what you are inputting, and what the output is?

How have you wired up your serial ports?

Thank you for your fast answer.
I forgot to say i was using a shield: Gravity: 1602 LCD Keypad Shield For Arduino - DFRobot
It was the reason of my troubles. I plug it out and the serials works well.
I can't explain why but i'll use another one LCD.