fix bug in pretty-symbol-patterns