fix punctuation middleware bug (float detection)