fix a glitch and force page refresh