catch error when the page is not full load