Added a workaround so that playback restarts on pattern 255