fix refresh (F5) not working anymore