fix buffer files