Update MainActivity.java

Bug fix