fix event prevention on chat restore