repair a bug in the format of key