fixes the restart browser problem