fix offline problem