fix memory lack