fix a crash when rotating device
Message logger throughout