Fixed scope for local variable