fix some regressions with negative value search and regex introduced by the annotext scheme