back-ported percentage correct to original Kitty code - fixed some x-axis problems