fix bug of MXD