fix content removal on function invocation
some examples