Bug fix to causal graph expansion. Further checks in preference removal.