update key id to long format