Xbee sending problem

Hi.

I have a problem about xbee. İn my project. i want to read rfid card with rc-522 and send to computer via xbee. also i am using arduino mega 2560. both rfid and xbee work successfully. they were tested. when read redear read the card, i want to post card number 1times, not continously.. so that i wrote code , i can read the tag number. can not send via xbee wich serial1 connectted. but serial working no problem(cable). PLEASE HELP!!!

#include <SPI.h>

#include <RFID.h>

#if defined(_USE_SOFT_SPI)
    RFID(int chipSelectPin, int NRSTPD, uint8_t mosiPin, uint8_t misoPin, uint8_t clockPin);    // Software SPI
#else
    RFID rfid(53, 5);    // Hardware SPI
#endif



int mysernum[5];
void setup()
{
  Serial1.begin(9600);
  Serial.begin(9600);
  SPI.setDataMode(SPI_MODE0);
  SPI.setBitOrder(MSBFIRST);
  SPI.setClockDivider(SPI_CLOCK_DIV8);
  SPI.begin();
  rfid.init();
}

void loop()
{
  if(rfid.isCard())
{
  rfid.readCardSerial();
  if(mysernum[0]!=rfid.serNum[0]&&mysernum[1]!=rfid.serNum[1]&&mysernum[2]!=rfid.serNum[2]&&mysernum[3]!=rfid.serNum[3]&&mysernum[4]!=rfid.serNum[4])
  {
      String message=String(rfid.serNum[0])+String(rfid.serNum[1])+String(rfid.serNum[2])+String(rfid.serNum[3])+String(rfid.serNum[4]);
     
      Serial1.println(message); // Problem not working
      Serial.println(message); // Working
      int i;
      for(i=0;i<5;i++)
      {
        mysernum[i]=rfid.serNum[i];
      }
    
  }
  else
{
  Serial1.println(message); // Working however, its wrote via xbee continously
}
}
rfid.halt();
}