fixed logcat bugs