Fix OAuth refresh bug