Fixed cascade for merge and delete.