Fixed flag printing for LIST elements

Sometimes the flags can end up being two digits; the previous code would
chop off the second digit by accident, giving very unexpected results for
the LIST flags.