fix the wrong output of flattenMap