fix mainActivity bug