Fixed flipping (It wasn't taken in account)