fix: typo.
change: unused variables has been removed.
fix: should declare a local variable "name".