Fix bug with Seq.set