Fixed error if the website is offline