fixed assignments to mutable Seq