Make detection recognize digits properly