Fixed broken loop mode