Fix undeclared variable on #7