fix bug when changing PMT