fixes to browser restoration