Fix reference field create bug