fix missing variable error

[merge]