fix: bugs in appended event logic