Fix refresh when click on the refresh button