fix page refresh