Fix LoopProvider

Fix LoopProvider so that the offset parameter affects where the output
is put, not where the input is got from.