Fix stupid scoping mistake