fix append_mark()