Fixing errors due to the use of new kas-mscontrol API