fixed bug:when center-mldel is null the script worked by wrong