fixup when on input cancel and on file close