Attept to fix memory error