Revert "Fix duplicated variable"

This reverts commit 2a2d97a1cd9f2a0533a617aca2b50a9ad7ccc2a1.