Fix count and mime type.