try to fix memory problem