Fixed bugs in up_pmf command.