Fixed bugs in mpogen, caused by changing quantum number classes