Fixed bug related to GUI for mask TMS setting.