cleanup stubbed nodes