user_dictionary: fix abormal records created by a bug in merging.