fix offline error