fix memory protected