Fixed a bug with x8 length of input number