Fix declaration of local variables.