Fix flag buffer output.