Fixed bugs in mpogen program