Fix deterministic issue.