and now it actually loops properly