empty reference id when editing fixed