bugfix in Sequence.take