fixed browser-hang problem