fixed logs bug