try to fix history, page load error handling