fixed bug for save logs