Fixed branch removal

children weren't getting removed from their parents