Fix calculation of roll difference