fix final file