Fixed bug when generating numbers beginning with 0