fix F5 refresh twice problem