fix flip bug
Merge pull request #1 from yusuketomoto/master

fix flip bug