Solves scope-hell with locals; fix