Fixed dynamic data sequence

Dynamic data sequences example has been modified to get a robust output
all the time, including if it has some errors.