fixed bugs in mltry exicution