fix memory settings