Fixed bug in shiftyLooping()