Cascaded delete bug fix.