ensured that empty metadata attributes are written