Fixed error caused by a non needed variable