fix a bug caused by RDD.flatMap being zipped with RDD