select-keys did not preserve metadata