Fix bug with leading digit classes