Local-scope redeclaration bug