Ion-slides loop: true increases index with 1

If loop is set to true in slideOpts all slide-indexes are increased with 1.
[0,1,2] becomes [1,2,3]. When you slide from 3 to the next slide the slide index number is 4, which is a non-existing slide. Code on this slide isn’t executed.