fixing object pool error