fix offline charging