Fix weird edge case on lexical scope

Signed-off-by: chatgris <jboyer@af83.com>