Fix some local declarations not working.