Fix iteration bug in valueSeq