fix bug4218: rscan -w writes wrong mgt for the CECs
fix bug4218: rscan -w writes wrong mgt for the CECs