variable definition bug fix