fixed SM_all bug _2