Fixed double declaration of variable