Fixed an error of variable reference without assignment.