Fix lack of variable declaration