Fixed a duplicated variable