Fixing writing meta-data with wrong key