fix bug
fix bug of var index