Fixed issue where mutable Seq was allowed