Fix calculation mistake.