Fix warning (var assigned to itself)

There may be semantic error here, please check.