fix order of key, value in store_id()