fix offline access bug