fixed bugs in Sequences chapter