Fixed a duplicate variable definition warning.