fix sm order issue