flush erros after sync