Fix class flag numbers on dashboard.

Previously they showed flags for any program.  This was not the intended
behavior.