fix token for offline