Fix ref issue.