[fix] Add metadata from codes back into mapping