bug fix for set flip x & y.