Fix offline charging (thanks to mikeNG)