More testing and fixing for the first digit of the output