fixed a bug where numbers could not be longer than two digits, fixes #2