Remove a wrong var declaration and replace it with the right one.