fix bulk upgrade issue