Fixed a bug in keyword update