Fixed bug which appear after device rotation