fix bug for loading nullable fk