Correct wrong variable declaration