Browser freezes when ''Clear on being hidden'' option is selected