bug fixed on mainActivity