It looks like the "target = " line in your get_batch() method is correctly looking one index ahead…  Perhaps the error lies not in the training but in the generation of the new time series.
Would you mind sharing with us the code you use for generating?