Refresh page if there is an error