Fixed number of flags not showing up right