fix log opening mode