fixed a bug.  I had broken the check for resulting completed layers after collapses.