fix apparent vmg computation and incorrect calculations