Fixed variable declared twice