Fix crash with update token