IR signal recording and replication

I am having a challenge with the replication of the signal.

I tested the code with a remote and then read it in again to see what i got.

first read was:

// ON, OFF (in 10's of microseconds)
  498, 432,
  90, 140,
  88, 144,
  88, 142,
  90, 24,
  82, 36,
  66, 50,
  64, 50,
  66, 50,
  64, 168,
  62, 168,
  64, 166,
  62, 54,
  62, 54,
  60, 56,
  58, 58,
  56, 58,
  58, 58,
  56, 174,
  58, 58,
  56, 58,
  58, 58,
  58, 58,
  58, 56,
  58, 58,
  56, 174,
  58, 58,
  56, 174,
  58, 172,
  58, 174,
  58, 172,
  58, 172,
  58, 174,
  56, 4826,
  466, 464,
  58, 172,
  58, 172,
  58, 174,
  56, 58,
  58, 58,
  56, 60,
  56, 58,
  58, 56,
  58, 174,
  58, 172,
  58, 174,
  56, 58,
  58, 58,
  56, 58,
  58, 58,
  58, 56,
  58, 58,
  58, 172,
  58, 58,
  56, 60,
  56, 58,
  58, 58,
  56, 60,
  56, 58,
  58, 172,
  58, 58,
  58, 172,
  58, 174,
  56, 174,
  56, 174,
  58, 172,
  58, 174,
  56, 0};

When played this code and tried to read it again i got a totally different read..

What is the problem here?