fix memory usage on x32