Fix declaration of variable
Moved to the start of a block