fix incorrect double digit detection