Fixed bug related with app crashes when opening the logs and rotate the device