fix not working when amongs text

a bug was invoked in #209