fix behaviors around fliping.

close #40