Fix create reference field error