loopingEnabled bug fix