fix log key issue