fixed msm command check