fixed next an last button toggles on loop mode