Fixed for redefine var i