Fix a bug for Seq that are not IndexedSeq