should fix flushlog not working