Fixed apostrophe and quotation matching. Fixed error when internet connection is not present