fix: saving file triggered two events