Fixed duplicate variable definition