fix memory error with sPickle