scratch size wasn't recalculated on relative speed change, other small fixes