Fixed var issue