Fix bug: update keywords went an error in some case.