Fix nullify generic relationship