solve the problem of refresh