fix not defined variabled