[TO_STAGE] fix missing variable error

[merge]