Avoid page jumps on reloading