removing text anchor after delivering message (issue #151)