Sorry, I guess that isn't a bug after all. It's just confusing. The local variable j is considered to be within a block (seperate from the parameter j).