bugfix for recent changes of {function} tag handling