Fix delete reference field