Fix attr error bug of evaluate()