fix the bug of variable