fix mixed file content