fix page reload issue