Fix off by one calculation error in sp30 leading zeroes