Fix chart math in RAM view.