Long HL1606 strip to the Arduino Uno

Oh, now i get it..

Now i have changed uint8_t n to int.
Now the first 255 LED's act like they are supposed to, but from the 256th LED to the 320th there is just some random color. Why this?