Fix audio player infinite loop