fix localization issue when rotating on iphone