Fix bug that caused generating bit strings to always have width of 10