Fix bug during refresh token issue and deletion