fixed bug in "str x" patterns in visits fixed issue #153