Fix error duplication variable name.
Fix bug.