Fixed race condition be removing useless vectors