Merge pull request #210 from tomokitakahashi/fix-warning-on-flatMap

Fix warning for deprecated `flatMap`