Fix errors when no token has been defined