Fixed autoplay in loop mode

Fixed #112