This is a good catch, there's some subtle gotchas when defining functions within a block.