scripts: fix MX creation