Fix bug of variables