fix comment var scoping