Fix a primitiveBatch class