fix looper bug