Fix logcat reading error