[MainActivity]Fixed a bug on refreshing