fixed object pool bug, updated api version