Fixed issue with flip mode.