I think you need to put the command: DIM L0[0] before loading the data and background. Without it, L0 is a regular variable, and not an array as it should be.