Update MainActivity.java

Fix some fatal BUG