fix nIndexesBeingBuilt()