Fixes bug OAuth token saving routine