Fixed bug with auto-updating expired token