Remove variable declared twice